<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
      <title>模块配置-模块新增</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	  <meta http-equiv="pragma" content="no-cache">
	  <meta http-equiv="cache-control" content="no-cache">
	  <%@include file="/base/easyui_lib.jsp" %>
	  <script type="text/javascript">
	     $(function(){
           $('#addForm').form({   
                url:'<%=request.getContextPath()%>/base/module/add.action?flag=add',   
                onSubmit: function(){   
                },   
                success:function(data){   
                  var result = $.parseJSON(data);
                  if (result && result != null) {
                     $.messager.alert('提示',result.msg,'info',
                       function(param) {
                          window.parent.closeWin();
                     });
                  }
                }   
           }); 
           $('#addBtn').click(function(){
              $('#addForm').submit();
           });
	     });
	  </script>
  </head>
  
  <body>
     <form id="addForm" action="" method="post">
     <input type="hidden" name="module.parent" value="${parentModule.unid}">
    <table>
       <tr>
         <td>模块名称:</td>
         <td><input type="text" name="module.name" /></td>
       </tr>
       <tr>
         <td>模块图标:</td>
         <td><input type="text" name="module.imgPath" /></td>
       </tr>
       <tr>
         <td>模块事件:</td>
         <td><input type="text" name="module.performAction" /></td>
       </tr>
       <tr>
         <td>模块排序:</td>
         <td><input type="text" name="module.position" /></td>
       </tr>
        <tr>
         <td>父级模块:</td>
         <td><input type="text" id="parentName" value="${parentModule.name}"/></td>
       </tr>
        <tr>
         <td><input type="button" id="addBtn" value="确  定"/></td>
         <td><input type="button" id="cancelBtn" value="取  消"/></td>
       </tr>
    </table>
    </form>
  </body>
</html>
